{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li><a href="{php echo web_url('rush/category/specialindex');}">专题管理</a></li>
	<li class="active"><a href="{php echo web_url('rush/category/specialedit');}">{if $id}编辑{else}新建{/if}专题</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form action="" method="post" class="form-horizontal form form-validate">
			<div class="tab-content">
				<div class="panel panel-default">
					<div class="panel-heading">抢购专题</div>
					<div class="panel-body">
						<div class="form-group">
							<label class="col-sm-2 control-label">专题标题<span style="color: orangered;">*</span></label>
							<div class="col-sm-9">
								<input type="text" name="special[title]" class="form-control" value="{$special['title']}" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">顶部图片<span style="color: orangered;">*</span></label>
							<div class="col-sm-9">
								{php echo attachment_select('special[thumb]',$special['thumb']);}
								<span class="help-block">图片宽高比以后台设置的列表页轮播图比例为准</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">图片链接</label>
							<div class="col-sm-9">
								<div class="input-group" style="margin: 0;">
									<input type="text" name="special[imglink]" class="form-control" value="{$special['imglink']}" readonly="readonly" name="link" placeholder="" id="advlink">
									<span data-input="#advlink" data-toggle="selectUrl" class="input-group-addon btn btn-default">选择链接</span>
									<span class="input-group-addon btn btn-default clearinput">X</span>
								</div>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">背景颜色<span style="color: orangered;">*</span></label>
							<div class="col-sm-9">
								{php echo tpl_form_field_color('special[bgcolor]',$special['bgcolor']);}
								<span class="help-block">默认背景颜色为白色</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">分享标题<span style="color: orangered;">*</span></label>
							<div class="col-sm-9">
								<input type="text" name="special[share_title]" class="form-control" value="{$special['share_title']}" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">分享描述<span style="color: orangered;">*</span></label>
							<div class="col-sm-9">
								<input type="text" name="special[share_desc]" class="form-control" value="{$special['share_desc']}" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">分享图片</label>
							<div class="col-sm-9">
								{php echo attachment_select('special[share_img]',$special['share_img']);}
								<span class="help-block">未设置时会分享顶部图片</span>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-2 control-label">专题规则</label>
							<div class="col-sm-9">
								{php echo tpl_diy_editor_create('special[rule]',$special['rule']);}
								<span class="help-block">不添加规则不显示</span>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="hidden" name="id" value="{$id}" id="id"/>
					<input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>
{php include wl_template('common/footer');}